package April_8;

import java.util.Scanner;

public class exercise_1 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] input= new int[5];
		for(int i=0;i<input.length;i++) {
			System.out.printf("请输入第%d个数字:",i+1);
			input[i] = in.nextInt();
		}
		System.out.println("index odd ");
		for(int i=0;i<input.length;i++) {
			if(i%2==1) {
				System.out.printf("input[%d]=%d",i,input[i]);
			}
		}
		
		
		int count=0;
		for(int i:input) {
			if(i%2==0) {
				count++;
			}
		}
		System.out.printf("input %d even number",count);
	}

}
